#include <my_header.h>

int main(int argc,char*argv[])
{
    char buf[1024];
    FILE *pipe = popen("sha1sum 1.c", "r");
    //FILE *pipe = popen("md5sum file.txt", "r");

    fread(buf,1, sizeof(buf), pipe);
    printf("hash: \n%s", buf);

    pclose(pipe);
    return 0;
}
